toNotEmptySet
Deprecated
Use the Array.toNotEmptySetOrThrow function instead.
Replace with
import kotools.types.collections.toNotEmptySetOrThrow
Content copied to clipboard
this.toNotEmptySetOrThrow()
Content copied to clipboard
Returns a NotEmptySet containing all the elements of this array, or throws an IllegalArgumentException if this array is empty.
Deprecated
Use the Collection.toNotEmptySetOrThrow function instead.
Replace with
import kotools.types.collections.toNotEmptySetOrThrow
Content copied to clipboard
this.toNotEmptySetOrThrow()
Content copied to clipboard
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.